package com.zz.springboot;

/**
 * <mapper-spring-boot-starter>版本从1.1.1升级到2.1.5后，
 * 便不能再使用org.mybatis.spring.annotation.MapperScan来扫描Mapper接口,
 * 否则会报java.lang.InstantiationException错误
 */
//import org.mybatis.spring.annotation.MapperScan;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan("com.zz.springboot.mapper")
@EnableAsync
//@EnableApolloConfig
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}
